<?php
require_once('config.php');
mysql_connect('localhost', 'root', '') or die ('No connect with database');
mysql_query('SET NAMES utf8');
mysql_select_db('blog') or die ("error");
$query = "UPDATE  `users` SET `karma` = `karma`-0.01 WHERE `karma` > 0 ";
$r = mysql_query($query) or die(mysql_error());
